#pragma once
#include "myString.h"
enum class sex { MALE, FEMALE };

class Data
{
	sex m_sex;
	size_t m_age;
	MyString m_position;
	float m_salary;
public:
	Data() :m_sex(sex::MALE), m_age(0), m_position("empty"), m_salary(0) {}
	Data(sex sex, size_t age, const char* Str, float salary)
		:m_sex(sex), m_age(age), m_position(Str), m_salary(salary) {}
	
	friend std::ostream& operator<<(std::ostream& os, const Data& data)
	{
		const char* sex = (data.m_sex == sex::MALE) ? "MALE" : "FEMALE";
		
		os << "sex: " << sex << " | " <<"age: " << data.m_age << " | " << "position: "<< data.m_position << " | " << "salary: " << data.m_salary << " |" << std::endl;
		return os;
	}
};